import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department";
import Employee from "./views/org/Employee";
import SystemdictionaryDetail    from "./views/system/SystemdictionaryDetail";
import SystemdictionaryType from "./views/system/SystemdictionaryType";
import HouseInfo from "./views/house/HouseInfo";
import ContractInfo from "./views/house/ContractInfo";
import RentInfo from "./views/house/RentInfo";
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import RegisterAgain from "./views/org/RegisterAgain";
import Nurse from "./views/resthome/Nurse";
import Bed from "./views/resthome/Bed";
import Oldman from "./views/resthome/Oldman";
import House from "./views/community/House";
import Owner from "./views/community/Owner";
import Menu from "./views/system/Menu";
import Permission from "./views/system/Permission";
import Role from "./views/system/Role";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },{
        path: '/shopRegister',
        component: ShopRegister,
        name: 'ShopRegister',
        hidden: true
    },
    {
        path: '/registerAgain',
        component: RegisterAgain,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        leaf: true,
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ],redirect: '/echarts'
    },
    // //{ path: '/main', component: Main },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '组织结构管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/dept', component: Department, name: '部门管理'},
    //         { path: '/emp', component: Employee, name: '员工管理' },
    //         { path: '/shop', component: Shop, name: '店铺管理' },
    //
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '系统权限管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/menu', component: Menu, name: '菜单管理'},
    //         { path: '/permission', component: Permission, name: '权限管理' },
    //         { path: '/role', component: Role, name: '角色管理' },
    //         { path: '/detail', component: SystemdictionaryDetail, name: '字典明细' },
    //         { path: '/type', component: SystemdictionaryType, name: '字典类型' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '租房管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/houseInfo', component: HouseInfo, name: '房屋管理'},
    //         { path: '/rent', component: RentInfo, name: '退租管理' },
    //         { path: '/contract', component: ContractInfo, name: '合同管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '养老院管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/nurse', component: Nurse, name: '护工管理'},
    //         { path: '/bed', component: Bed, name: '床位管理' },
    //         { path: '/oldMan', component: Oldman, name: '老人管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '小区楼栋管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/house', component: House, name: '房屋管理'},
    //         { path: '/owner', component: Owner, name: '业主管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '导航二',
    //     iconCls: 'fa fa-id-card-o',
    //     children: [
    //         { path: '/page4', component: Page4, name: '页面4' },
    //         { path: '/page5', component: Page5, name: '页面5' }
    //     ]
    // },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;